package com.bahiaapk.dto;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TwitterMessage implements Serializable{
	
	private static final long serialVersionUID = 1L;

	private Long id;
	
	private String urlImage;
	
	private String message;
	
	private String name;
	
	private Date createdAt;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUrlImage() {
		return urlImage;
	}

	public void setUrlImage(String urlImage) {
		this.urlImage = urlImage;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	

	public Date getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	
	public String getCreatedAtFormat(){
		SimpleDateFormat dt = new SimpleDateFormat("dd-MM-yyyy - HH:mm"); 
		return dt.format(createdAt); 
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	
}
